import { ApiProperty } from '@nestjs/swagger';
import { QueryListVo } from 'src/vo/query.list.vo';
import { QueryVo } from 'src/vo/query.vo';

export class RoleVo extends QueryVo{
  @ApiProperty({ description: '角色名称' })
  rolename: string;

  @ApiProperty({ description: '角色说明' })
  description: string;

  @ApiProperty({ description: '是否默认：0表示否,1表示是' })
  isDefault?: number;
}

export class RoleListVo extends QueryListVo {
    @ApiProperty({ description: '返回数据列表', type: RoleVo, isArray: true })
    roles: RoleVo[];
  }